package com.soft.mainsite.module.web.cms.service;

import com.soft.mainsite.common.base.BaseService;
import com.soft.mainsite.module.web.system.vo.UserVo;
import com.soft.mainsite.mybatis.model.TCmsAdSilder;

import java.util.List;

/**
 * Description:幻灯片
 *
 * @author Jin
 * @create 2017-06-12
 **/
public interface SilderService extends BaseService<TCmsAdSilder,Integer>{

    /**
     * 更新幻灯
     * @param pojo
     * @param userVo
     * @return
     */
    String update(TCmsAdSilder pojo, UserVo userVo);

    /**
     * 添加幻灯
     * @param pojo
     * @param userVo
     * @return
     */
    String save(TCmsAdSilder pojo, UserVo userVo);

    /**
     * 删除幻灯
     * @param ids
     * @param userVo
     * @return
     */
    String delete(Integer[] ids, UserVo userVo);

    /**
     * 批量添加幻灯
     * @param adSilderList
     * @return
     */
    int saveMoreSilder(List<TCmsAdSilder> adSilderList);

    /**
     * 查询初始化幻灯
     * @return
     */
    List<TCmsAdSilder> findInitSilder();

    /**
     * 通过站点id删除首页幻灯
     * @param siteIds
     * @return
     */
    int deleteMoreBySiteId(List<Integer> siteIds);
}
